<div class="his_infos">
  <div class="left">
    <img src="<%= current_user.image%>" alt="<%= current_user.name%>"/>
  </div>
  <div class="right">
    <h1><%= current_user.name%></h1>
    <p>
      <%if current_user.is_female%>
        <img src="/images/icon_female.gif" alt="女"/>
      <%end%>
      <%if !current_user.is_female%>
        <img src="/images/icon_male.gif" alt="男"/>
      <%end%>
      <span><%=current_user.city%></span>
    </p>
  </div>
</div>
<div class="weibo-details">

  <div class="headline">
    <span>我的收藏</span>
  </div>
  
  <div>
    <%= will_paginate @favorites,{:prev_label=>'前一页', :next_label=>'下一页'} %>
    <ul>
      <% @favorites.each do |favorite| %>
        <li>
          <p>
            <a href="/user/<%=favorite.weibo.user.id%>"><%= h favorite.weibo.user.name%>：</a><%= h favorite.weibo.content%>
            <%= link_to "删除",favorite_path(favorite),:method=>:delete %>
          </p>

        </li>
      <% end %>
    </ul>
    <%= will_paginate @favorites,{:prev_label=>'前一页', :next_label=>'下一页'} %>
  </div>
</div>
